package cn.js.controller;

import cn.js.dto.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @Author Js
 * @Create 2024-11-23 22:18
 * @Version 1.0
 */
@RestController
@RequestMapping("/pay")
public class UserController {
    @GetMapping("/user/{id}")
    public User getById(@PathVariable Long id){
        return new User(id,"张三:" + id, "我是张三");
    }
}
